package com.ssy.lingxi.platform.manage.controller;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.service.ICountryAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * @menu 国家
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
@Api(tags = "国家")
@RestController
public class CountryAreaController {

    @Resource
    private ICountryAreaService countryAreaService;

    @ApiOperation(value = "查询手机区号")
    @GetMapping(value = "/manage/countryArea/getTelCode")
    public Wrapper<List<String>> getTelCode() {
        return countryAreaService.listAreaCode();
    }
}
